//This code was created with the help of Cairngorm Creator by Tyler Beck.
//The portions of this document created by Cairngorm Creator 
//are provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR 
//CONDITIONS OF ANY KIND, either express or implied.
//========================================================



package net.optix.ip.vo
{
	public class FirmVO
	{
		//add 2009-3-30
		public var bService:int;
		
		public var firmID:int;
		public var userID:int;
		public var bAuction:int;
		public var bTradeMarkAuction:int;
		public var bCopyrightAuction:int;
		
		public var name:String;
		public var address:String;
		public var city:String;
		public var state:String;
		public var postalCode:String;
		public var country:String;
		
		public var email:String;
		public var workPhone:String;
		public var homePhone:String;
		public var cellPhone:String;

		public static function purseFirm(value:XML):FirmVO
		{
			var firm:FirmVO	=	new FirmVO();
			
			try
			{
				//add at 2009-3-30
				firm.bService	=	value.BService;
				
				firm.firmID		=	value.FirmID;
				firm.name		=	value.Name;
				firm.userID		=	value.UserID;
				firm.bAuction	=	value.BAuction;
				firm.bTradeMarkAuction	=	value.BTradeMarkAuction;
				firm.bCopyrightAuction	=	value.BCopyrightAuction;
				firm.city		=	value.City;
				firm.state		=	value.State;
				firm.address	=	value.Address;
				firm.postalCode	=	value.PostalCode;
				firm.country	=	value.Country;
				
				firm.email		=	value.Email;
				firm.workPhone	=	value.WorkPhone;
				firm.homePhone	=	value.HomePhone;
				firm.cellPhone	=	value.CellPhone;
			}
			catch(error:Error){}
			return firm;
		}
	}
}